package com.masterkey;

import javax.crypto.spec.SecretKeySpec;

public class Data {

	String siteApp;
	String userName;
	byte[] encryptedPW;
	SecretKeySpec skeySpec;

	public Data(String siteApp, String userName, byte[] encryptedPW,
			SecretKeySpec skeySpec) {
		this.siteApp = siteApp;
		this.userName = userName;
		this.encryptedPW = encryptedPW;
		this.skeySpec = skeySpec;
	}

	public String toString() {
//		return "Site/app: " + siteApp + "\n Username: " + userName
//				+ "\n Encrypted pw: " + encryptedPW.toString()
//				+ "\n skeySpec: " + skeySpec.toString();
		return siteApp+"$"+ userName +"$"+  encryptedPW.toString() +"$"+   skeySpec.toString() +"$"  ;
	}

	public String getSiteApp() {
		return siteApp;
	}

	public void setSiteApp(String siteApp) {
		this.siteApp = siteApp;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public byte[] getEncryptedPW() {
		return encryptedPW;
	}

	public void setEncryptedPW(byte[] encryptedPW) {
		this.encryptedPW = encryptedPW;
	}

	public SecretKeySpec getSkeySpec() {
		return skeySpec;
	}

	public void setSkeySpec(SecretKeySpec skeySpec) {
		this.skeySpec = skeySpec;
	}

}
